﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt.TenderBond
{
    public class TenderBondBackApproval : Entity
    {
        /// <summary>
        /// 申请用户
        /// </summary>
        public virtual t_sys_user OpUser { get; set; }

        /// <summary>
        /// 所属项目
        /// </summary>
        public virtual t_project Project { get; set; }

        /// <summary>
        /// 申请标题
        /// </summary>
        public virtual string Title { get; set; }

        /// <summary>
        /// 申请备注
        /// </summary>
        public virtual string Remark { get; set; }

        /// <summary>
        /// 退回类型：0：非中标人退保；1：中标人退保
        /// </summary>
        public virtual int BackType { get; set; }

        /// <summary>
        /// 部门经理审批意见
        /// </summary>
        public virtual string ContentForBMJL { get; set; }

        /// <summary>
        /// 财务部门经理审批意见
        /// </summary>
        public virtual string ContentForCWJL { get; set; }

        /// <summary>
        /// 财务出纳操作日志
        /// </summary>
        public virtual string ContentForCWCN { get; set; }
        
        /// <summary>
        /// 附件文件
        /// </summary>
        public virtual Attachment.Attachment Attachment { get; set; }

        /// <summary>
        /// 退保明细
        /// </summary>
        public virtual IList<TenderBondBackApprovalDetail> Details { get; set; }

        #region 流程的状态描述
        /// <summary>
        /// 审批标志
        /// </summary>
        public virtual int SPFlag { get; set; }

        /// <summary>
        /// 审批时间
        /// </summary>
        public virtual DateTime SPDate { get; set; }

        /// <summary>
        /// 审批结果摘要
        /// </summary>
        public virtual string SPDescribe { get; set; }

        /// <summary>
        /// 对应的审批记录
        /// </summary>
        public virtual SimpleFlow.ApprovalRecord ApprovalRecord { get; set; }
        #endregion

        public TenderBondBackApproval()
        {
            Details = new List<TenderBondBackApprovalDetail>();
        }
    }
}
